<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('报告名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('报告摘要')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Online_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-online_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[online_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('报告年份')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-years" class="form-control" name="row[years]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否前端展示')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-is_showswitch" name="row[is_showswitch]" type="hidden" value="1">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-is_showswitch" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success  fa-2x"></i>
            </a>
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('报告产业')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- <input id="c-type_id" data-rule="required" data-source="type/index" class="form-control selectpage" name="row[type_id]" type="text" value=""> -->
            <select id="c-type_id" data-rule="required" class="form-control" name="row[type_id]">
                <option value="">请选择</option>
                {foreach name="getTypeOne" item="vo"}
                    <option value="{$vo.id}">{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('报告文件(小于20M)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-pdf_file" class="form-control" size="20" name="row[pdf_file]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-pdf_file" class="btn btn-danger plupload" data-url="ajax/file" data-input-id="c-pdf_file" data-multiple="false" data-preview-id="p-pdf_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-pdf_file" class="btn btn-primary fachoose" data-input-id="c-pdf_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-pdf_file"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-pdf_file"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('报告封面(210*300)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-tpic_image" data-rule="required" class="form-control" size="50" name="row[tpic_image]" type="text" placeholder="210*300">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-tpic_image" class="btn btn-danger plupload" data-url="ajax/file" data-input-id="c-tpic_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-tpic_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-tpic_image" class="btn btn-primary fachoose" data-input-id="c-tpic_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-tpic_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-tpic_image"></ul>
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pdf_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pdf_name" class="form-control" name="row[pdf_name]" type="text">
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Realm')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-realm" class="form-control" name="row[realm]" type="text">
        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
